package com.gzhryc.weixin.api.resource.msg.req;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 发送模板信息请求
 * @author 张浩
 * @version 2016-12-15
 */
public class SendTemplateMsgRequest implements Serializable{

	private static final long serialVersionUID = 1L;
	
	protected String touser;
	protected String template_id;
	protected String url;
	protected Map<String,Data> data;
	
	public SendTemplateMsgRequest(){
		this.data = new HashMap<String,Data>();
	}
	
	public String getTouser() {
		return touser;
	}

	public void setTouser(String touser) {
		this.touser = touser;
	}

	public String getTemplate_id() {
		return template_id;
	}

	public void setTemplate_id(String template_id) {
		this.template_id = template_id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Map<String, Data> getData() {
		return data;
	}

	public void setData(Map<String, Data> data) {
		this.data = data;
	}

	public static class Data implements Serializable{
		
		private static final long serialVersionUID = 1L;

		public Data() {}
		
		public Data(String value) {
			this.value = value;
		}
		
		public Data(String value,String color) {
			this.value = value;
			this.color = color;
		}
		
		protected String value;
		protected String color = "#000000";
		
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
		public String getColor() {
			return color;
		}
		public void setColor(String color) {
			this.color = color;
		}
	}
}
